/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package carrello.impl.controller.user;

import carrello.model.entities.Category;
import carrello.model.entities.Product;
import java.util.List;

/**
 *
 * @author Usman
 */
public class HomeCTRL {
    public static List<Product> getAllProducts ( String category ) {
        if ( category == null || category.length() == 0)
            return Product.getAllProducts ( );
        return null;
    }
    public static List<Category> getAllCategories ( ) {
        return Category.getAllCategories();
    }
}
